package com.liuxinlong.enums;

/**
 * 返回码信息枚举
 * 
 * @author liuxinlong@hotwater.com.cn
 * @version 1.0.0
 * @since 2021-12-28
 *
 */
public enum ReturnCodes {

	HTTP_SUCCESS("0", "请求成功"),
	HTTP_PARAM_ERROR("990010001", "请求参数错误"),
	HTTP_PERMISSION_TOKEN_EXPIRED("990010002", "用户登陆有效凭证过期"),
	HTTP_PERMISSION_VERIFICATION_FAILED("990010003", "用户不具备操作权限"),
	HTTP_IMPORT_FAIL_READ_FILE("990020003", "导入文件读取失败"),
	HTTP_IMPORT_FAIL_NO_DATA("990020004", "导入文件没有数据"),
	HTTP_IMPORT_PART_FAIL("990020005", "导入数据部分失败"),
	HTTP_IMPORT_FAIL_UPLOAD_FILE("990020006", "导入失败，文件上传失败"),
	HTTP_ACCESS_FAIL_SECURITY_TOKEN("990030001", "连接SPO服务器获取 SecurityToken 失败"),
	HTTP_ACCESS_FAIL_ACCESS_TOKEN("990030002", "连接SPO服务器获取 AccessToken 失败"),
	HTTP_ACCESS_FAIL_REQUEST_DIGEST("990030003", "连接SPO服务器获取 RequestDigest 失败"),
	HTTP_ACCESS_FAIL_CONNECT("990030004", "连接SPO服务器失败"),
	HTTP_SAME_SERIAL_NUMBER("990020005", "存在相同序号"),
	HTTP_SHORT_INTERVAL_TIME("990040001", "间隔时间过短"),
	HTTP_SYSTEM_ERROR("990019999", "系统异常，请联系管理员");

	private String retCode;

	private String msg;

	public String getRetCode() {
		return retCode;
	}

	public String getMsg() {
		return msg;
	}

	ReturnCodes(String retCode, String msg) {
		this.retCode = retCode;
		this.msg = msg;
	}
}
